package com.heartline;

import com.blade.Blade;
import com.blade.security.web.csrf.CsrfMiddleware;
import lombok.extern.slf4j.Slf4j;

/**
 * 项目启动类
 * Created by Administrator on 2018/6/3 0003.
 */
@Slf4j
public class Application {

    public static void main(String[] args) throws Exception {
        init();
        Blade blade = Blade.me().use(new CsrfMiddleware()).start(Application.class, args);
    }

    //初始化参数
    private static void init() {
        System.setProperty("java.io.tmpdir", System.getProperty("user.dir") + "/Temp");
    }
}